package com.youdoneed.user.query;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;
import com.youdoneed.user.model.Photo;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;

/**
 * QPhoto is a Querydsl query type for Photo
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QPhoto extends com.querydsl.sql.RelationalPathBase<Photo> {

    private static final long serialVersionUID = -318246491;

    public static final QPhoto Photo = new QPhoto("Photo");

    public final DateTimePath<java.util.Date> createTime = createDateTime("createTime", java.util.Date.class);

    public final StringPath description = createString("description");

    public final StringPath format = createString("format");

    public final NumberPath<Integer> height = createNumber("height", Integer.class);

    public final StringPath photoId = createString("photoId");

    public final NumberPath<Long> size = createNumber("size", Long.class);

    public final StringPath url = createString("url");

    public final StringPath userId = createString("userId");

    public final NumberPath<Integer> width = createNumber("width", Integer.class);

    public final com.querydsl.sql.PrimaryKey<Photo> primary = createPrimaryKey(photoId);

    public QPhoto(String variable) {
        super(Photo.class, forVariable(variable), "null", "Photo");
        addMetadata();
    }

    public QPhoto(String variable, String schema, String table) {
        super(Photo.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QPhoto(String variable, String schema) {
        super(Photo.class, forVariable(variable), schema, "Photo");
        addMetadata();
    }

    public QPhoto(Path<? extends Photo> path) {
        super(path.getType(), path.getMetadata(), "null", "Photo");
        addMetadata();
    }

    public QPhoto(PathMetadata metadata) {
        super(Photo.class, metadata, "null", "Photo");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(createTime, ColumnMetadata.named("createTime").withIndex(9).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(description, ColumnMetadata.named("description").withIndex(4).ofType(Types.VARCHAR).withSize(255));
        addMetadata(format, ColumnMetadata.named("format").withIndex(5).ofType(Types.VARCHAR).withSize(20));
        addMetadata(height, ColumnMetadata.named("height").withIndex(8).ofType(Types.INTEGER).withSize(10));
        addMetadata(photoId, ColumnMetadata.named("photoId").withIndex(1).ofType(Types.VARCHAR).withSize(20).notNull());
        addMetadata(size, ColumnMetadata.named("size").withIndex(6).ofType(Types.BIGINT).withSize(19));
        addMetadata(url, ColumnMetadata.named("url").withIndex(3).ofType(Types.VARCHAR).withSize(255));
        addMetadata(userId, ColumnMetadata.named("userId").withIndex(2).ofType(Types.VARCHAR).withSize(20));
        addMetadata(width, ColumnMetadata.named("width").withIndex(7).ofType(Types.INTEGER).withSize(10));
    }

}

